* Order counts.
*/
static void
-gpx_write_common_acc(const waypoint* waypointp, const char* indent)
+gpx_write_common_acc(const waypoint* waypointp)
{
const char* fix = NULL;
static void
-gpx_write_common_position(const waypoint* waypointp, const char* indent)
+gpx_write_common_position(const waypoint* waypointp)
{
if (waypointp->altitude != unknown_alt) {
writer.writeTextElement("ele", QString::number(waypointp->altitude, 'f', 6));
}
static void
-gpx_write_common_extensions(const waypoint* waypointp, const char* indent)
+gpx_write_common_extensions(const waypoint* waypointp)
{
// FIXME: gpxx:Temperature must be a child of gpxx:WaypointExtension or gpxx:TrackPointExtension.
// FIXME: gpxx:Depth must be a child of gpxx:WaypointExtension or gpxx:TrackPointExtension.
}
static void
-gpx_write_common_description(const waypoint* waypointp, const char* indent,
- const char* oname)
+gpx_write_common_description(const waypoint* waypointp, const char* oname)
{
writer.writeOptionalTextElement("name", oname);
writer.writeOptionalTextElement("cmt", waypointp->description);
oname = global_opts.synthesize_shortnames ?
mkshort_from_wpt(mkshort_handle, waypointp) :
waypointp->shortname;
- gpx_write_common_position(waypointp, " ");
- gpx_write_common_description(waypointp, " ", oname);
- gpx_write_common_acc(waypointp, " ");
+ gpx_write_common_position(waypointp);
+ gpx_write_common_description(waypointp, oname);
+ gpx_write_common_acc(waypointp);
if (!(opt_humminbirdext || opt_garminext)) {
fs_gpx = (fs_xml*)fs_chain_find(waypointp->fs, FS_GPX);
garmin_fs_xml_fprint(waypointp, writer);
}
} else {
- gpx_write_common_extensions(waypointp, " ");
+ gpx_write_common_extensions(waypointp);
}
writer.writeEndElement();
}
writer.writeAttribute("lat", toString(waypointp->latitude));
writer.writeAttribute("lon", toString(waypointp->longitude));
- gpx_write_common_position(waypointp, " ");
+ gpx_write_common_position(waypointp);
/* These were accidentally removed from 1.1 */
if (gpx_wversion_num == 10) {
oname = global_opts.synthesize_shortnames ?
mkshort_from_wpt(mkshort_handle, waypointp) :
waypointp->shortname;
- gpx_write_common_description(waypointp, " ",
+ gpx_write_common_description(waypointp,
waypointp->wpt_flags.shortname_is_synthetic ?
NULL : oname);
- gpx_write_common_acc(waypointp, " ");
+ gpx_write_common_acc(waypointp);
if (!(opt_humminbirdext || opt_garminext)) {
fs_gpx = (fs_xml*)fs_chain_find(waypointp->fs, FS_GPX);
fprint_xml_chain(fs_gpx->tag, waypointp);
}
} else {
- gpx_write_common_extensions(waypointp, " ");
+ gpx_write_common_extensions(waypointp);
}
writer.writeEndElement();
}
oname = global_opts.synthesize_shortnames ?
mkshort_from_wpt(mkshort_handle, waypointp) :
waypointp->shortname;
- gpx_write_common_position(waypointp, " ");
- gpx_write_common_description(waypointp, " ", oname);
- gpx_write_common_acc(waypointp, " ");
+ gpx_write_common_position(waypointp);
+ gpx_write_common_description(waypointp, oname);
+ gpx_write_common_acc(waypointp);
if (!(opt_humminbirdext || opt_garminext)) {
fs_gpx = (fs_xml*)fs_chain_find(waypointp->fs, FS_GPX);
fprint_xml_chain(fs_gpx->tag, waypointp);
}
} else {
- gpx_write_common_extensions(waypointp, " ");
+ gpx_write_common_extensions(waypointp);
}
writer.writeEndElement();
}